#pragma once
#include <map>

template< class Data1, class Data2 >
class SelectMap : public std::map< Data1, Data2 >
{
public:
	typedef std::map<Data1, Data2>::iterator selectIter;

public:
	SelectMap(void){};
	~SelectMap(void){};

	bool CheckInsert( Data1 data1, Data2 data2 )
	{		 
		selectIter findIter = find( data1 );
		if( findIter == end() )
		{	
			insert( std::make_pair( data1, data2 ) );
			return true;
		}
		return false;
	}
};
